package com.cn.springcloudwechat.service.personalcenter.service;

import com.cn.springcloudwechat.model.YmChildGrowth;
import org.omg.PortableInterceptor.INACTIVE;

import java.text.ParseException;
import java.util.List;

public interface YmChildGrowthService {

    /**
     * 添加宝宝成长记录
     * @return
     */
    Integer insertYmChildGrowth(YmChildGrowth ymChildGrowth) throws ParseException, IllegalAccessException;

    /**
     * 修改宝宝成长记录
     * @param ymChildGrowth
     * @return
     */
    Integer updateYmChildGrowth(YmChildGrowth ymChildGrowth) throws ParseException, IllegalAccessException;

    /**
     * 查询宝宝成长记录
     * @param
     * @return
     */
    List<YmChildGrowth> getYmChildGrowth(Long childId);

    /**
     * 获取宝宝最新成长记录
     * @param childId
     * @return
     */
    YmChildGrowth getNewestYmChildGrowth(Long childId);
}
